package com.order.service;

import com.github.pagehelper.PageInfo;
import com.order.bean.User;

import java.util.List;

public interface UserService {

    User login(User user);

    boolean addUser(User user);

    boolean updateUser(User user);

    boolean deleteById(Integer id);

    boolean deleteBatch(Integer[] userIds);

    User selectUserById(Integer id);

    List<User> selectAll(String name);

    PageInfo<User> selectPage(String name, Integer pageNum, Integer pageSize);
}
